package cn.com.backstage.controller.base;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import cn.com.api.entity.ApiU_discover_cate;
import cn.com.api.service.ApiU_discover_cateService;

public class T_discoverBaseController extends BaseController {
	@Autowired
	private ApiU_discover_cateService apiU_discover_cateService;
	
	/**
	 * 列表
	 * @return
	 */
	@RequestMapping(value = "t_city-list")
	public ModelAndView t_city_list(HttpServletRequest request, HttpServletResponse response) throws Exception{
		ModelAndView mv = new ModelAndView("forward:/backstage/t_city_list.jsp");
		
		List<ApiU_discover_cate> t_citys = apiU_discover_cateService.findU_discover_cates();
		mv.addObject("t_citys", t_citys);
		
		return mv;
	}
}
